import { api } from "src/boot/axios";

export function login(data) {
  return api({
      url: "/cusUser/login",
      method: "post",
      data,
  });
}

export function getPhoneCode(params) {
  return api({
      url: "/phoneLogin/sendCode",
      method: "get",
      params: params
  });
}

export function loginUserWithPhone(data) {
  return api({
      url: "/phoneLogin/login",
      method: "post",
      data,
  });
}
